/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package agol.rent.system.admin;


import agol.rent.system.Dialog.KonfirmasiExit;
import agol.rent.system.Dialog.KonfirmasiLogout;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author AgoL - Daffa
 */
public class FormAdmin extends javax.swing.JFrame {
   
    //FormAdmin formAdmin;
    /**
     * Creates new form FormAdmin
     */
    public FormAdmin() { 
       
        initComponents();
        //setVisible(true);
        
        setIconImage(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/icon.png")).getImage());
        setSize(800, 600);
        
        setExtendedState(MAXIMIZED_BOTH);
        setLocationRelativeTo(this);
        
        jTimeLabel2.startTimer();
        setGlassPane(jGlassPane1);
        getGlassPane().setVisible(true);
        //radioNimbus.setSelected(true);
        
       // jGlassPane1.addGlassPaneComponent(transitionComponent1);
       // dialogComponent1.setDialogBackground(new DialogBackgroundColor(Color.yellow));
    } 
    
    private void resetLaf(){
        SwingUtilities.updateComponentTreeUI(this);
    }
   // public AdminLogin getAdminLogin(){
     //   return adminLogin;
   // }

    public void exitForm(){
        this.dispose();
    }
    
    public void logout() {
     // Login();
    } 
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        glassPane1 = new usu.widget.GlassPane();
        transitionComponent1 = new com.stripbandunk.jglasspane.component.TransitionComponent();
        dialogComponent1 = new com.stripbandunk.jglasspane.component.DialogComponent();
        jGlassPane1 = new com.stripbandunk.jglasspane.JGlassPane();
        buttonTema = new javax.swing.ButtonGroup();
        jLabel2 = new javax.swing.JLabel();
        jToolBar2 = new javax.swing.JToolBar();
        undo = new javax.swing.JButton();
        redo = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JToolBar.Separator();
        notepad = new javax.swing.JButton();
        kalkulator = new javax.swing.JButton();
        home = new javax.swing.JButton();
        exit = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JToolBar.Separator();
        PanelJamBawah = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jTimeLabel2 = new com.stripbandunk.jwidget.JTimeLabel();
        jSplitPane1 = new javax.swing.JSplitPane();
        jScrollPane2 = new javax.swing.JScrollPane();
        PanelTampungHome = new javax.swing.JPanel();
        panelAccessories = new agol.rent.system.panel.panelAccessories();
        panelArmagedon = new agol.rent.system.panel.panelArmagedon();
        jSplitPane2 = new javax.swing.JSplitPane();
        jPanel3 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        label1 = new usu.widget.Label();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTree1 = new javax.swing.JTree();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        print = new javax.swing.JMenuItem();
        keluarPengguna = new javax.swing.JMenuItem();
        keluarSystem = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem16 = new javax.swing.JMenuItem();
        jMenuItem17 = new javax.swing.JMenuItem();
        jMenuItem18 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        masterKategoriBarang = new javax.swing.JMenuItem();
        masterListBarang = new javax.swing.JMenuItem();
        masterBarangRental = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        reportBarangMasuk = new javax.swing.JMenuItem();
        reportBarangKeluar = new javax.swing.JMenuItem();
        reportBarangKembali = new javax.swing.JMenuItem();
        reportBarangError = new javax.swing.JMenuItem();
        jMenu5 = new javax.swing.JMenu();
        toolsNotepad = new javax.swing.JMenuItem();
        toolsCalculator = new javax.swing.JMenuItem();
        jMenuItem12 = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        pengaturanPengguna = new javax.swing.JMenuItem();
        pengaturanDatabase = new javax.swing.JMenuItem();
        menuTema = new javax.swing.JMenu();
        radioNimbus = new javax.swing.JRadioButtonMenuItem();
        radioWindows = new javax.swing.JRadioButtonMenuItem();
        radioMetal = new javax.swing.JRadioButtonMenuItem();
        radioMotif = new javax.swing.JRadioButtonMenuItem();

        javax.swing.GroupLayout transitionComponent1Layout = new javax.swing.GroupLayout(transitionComponent1);
        transitionComponent1.setLayout(transitionComponent1Layout);
        transitionComponent1Layout.setHorizontalGroup(
            transitionComponent1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        transitionComponent1Layout.setVerticalGroup(
            transitionComponent1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jLabel2.setFont(new java.awt.Font("Tempus Sans ITC", 1, 24));
        jLabel2.setForeground(new java.awt.Color(0, 255, 0));
        jLabel2.setText("My Documents");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Rent System");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        jToolBar2.setRollover(true);

        undo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/left.png"))); // NOI18N
        undo.setToolTipText("Back");
        undo.setFocusable(false);
        undo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        undo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        undo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                undoActionPerformed(evt);
            }
        });
        jToolBar2.add(undo);

        redo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/right.png"))); // NOI18N
        redo.setToolTipText("Forward");
        redo.setFocusable(false);
        redo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        redo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar2.add(redo);
        jToolBar2.add(jSeparator1);

        notepad.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/Document 1.png"))); // NOI18N
        notepad.setToolTipText("Notepad");
        notepad.setFocusable(false);
        notepad.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        notepad.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        notepad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                notepadActionPerformed(evt);
            }
        });
        jToolBar2.add(notepad);

        kalkulator.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/calculator-icon.png"))); // NOI18N
        kalkulator.setToolTipText("Calculator");
        kalkulator.setFocusable(false);
        kalkulator.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        kalkulator.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar2.add(kalkulator);

        home.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/home_toolbar.png"))); // NOI18N
        home.setToolTipText("Home");
        home.setFocusable(false);
        home.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        home.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar2.add(home);

        exit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/Turn off.png"))); // NOI18N
        exit.setToolTipText("Turn Off");
        exit.setFocusable(false);
        exit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        exit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        exit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exitActionPerformed(evt);
            }
        });
        jToolBar2.add(exit);
        jToolBar2.add(jSeparator2);

        getContentPane().add(jToolBar2, java.awt.BorderLayout.PAGE_START);

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("2013 : @ AgoL Santoso");

        jTimeLabel2.setFont(new java.awt.Font("Tahoma", 0, 12));
        jTimeLabel2.setTimeFormatter("EEEE,  dd MMMM yyyy .   HH:mm : ss");

        javax.swing.GroupLayout PanelJamBawahLayout = new javax.swing.GroupLayout(PanelJamBawah);
        PanelJamBawah.setLayout(PanelJamBawahLayout);
        PanelJamBawahLayout.setHorizontalGroup(
            PanelJamBawahLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelJamBawahLayout.createSequentialGroup()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 583, Short.MAX_VALUE)
                .addComponent(jTimeLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(36, 36, 36))
        );
        PanelJamBawahLayout.setVerticalGroup(
            PanelJamBawahLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelJamBawahLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jTimeLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        getContentPane().add(PanelJamBawah, java.awt.BorderLayout.PAGE_END);

        jSplitPane1.setDividerLocation(210);
        jSplitPane1.setDividerSize(3);
        jSplitPane1.setEnabled(false);

        PanelTampungHome.setLayout(new java.awt.CardLayout());
        PanelTampungHome.add(panelAccessories, "card3");
        PanelTampungHome.add(panelArmagedon, "card3");

        jScrollPane2.setViewportView(PanelTampungHome);

        jSplitPane1.setRightComponent(jScrollPane2);

        jSplitPane2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, new java.awt.Color(51, 255, 0), new java.awt.Color(0, 0, 0), null, null));
        jSplitPane2.setDividerLocation(170);
        jSplitPane2.setDividerSize(2);
        jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
        jSplitPane2.setEnabled(false);

        jPanel3.setBackground(new java.awt.Color(51, 51, 51));
        jPanel3.setEnabled(false);

        jLabel3.setFont(new java.awt.Font("Tempus Sans ITC", 1, 24));
        jLabel3.setForeground(new java.awt.Color(0, 255, 0));
        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel3.setText("My Documents");

        label1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        label1.setIconReflec(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/docu.png"))); // NOI18N

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE)
            .addComponent(label1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jSplitPane2.setTopComponent(jPanel3);

        javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("Accessories");
        javax.swing.tree.DefaultMutableTreeNode treeNode2 = new javax.swing.tree.DefaultMutableTreeNode("PC / Komputer & Notebook");
        javax.swing.tree.DefaultMutableTreeNode treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("PC President");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("PC Armagedon");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("PC Corsair");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("PC Enlight");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Notebook Hp Probook's");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Notebook Toshiba");
        treeNode2.add(treeNode3);
        treeNode1.add(treeNode2);
        treeNode2 = new javax.swing.tree.DefaultMutableTreeNode("LCD Monitor");
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Tomato 21 inch");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Acer Touchscreen 17 inch");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("T-Tock Touchscreen 21 inch");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Dell  21 inch");
        treeNode2.add(treeNode3);
        treeNode1.add(treeNode2);
        treeNode2 = new javax.swing.tree.DefaultMutableTreeNode("Accessories Komputer");
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Webcam");
        javax.swing.tree.DefaultMutableTreeNode treeNode4 = new javax.swing.tree.DefaultMutableTreeNode("Logitech HD Pro9000");
        treeNode3.add(treeNode4);
        treeNode4 = new javax.swing.tree.DefaultMutableTreeNode("Logitech HD C270h");
        treeNode3.add(treeNode4);
        treeNode4 = new javax.swing.tree.DefaultMutableTreeNode("Lebeca");
        treeNode3.add(treeNode4);
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Mouse & Keyboard");
        treeNode4 = new javax.swing.tree.DefaultMutableTreeNode("Mouse QSENN");
        treeNode3.add(treeNode4);
        treeNode4 = new javax.swing.tree.DefaultMutableTreeNode("Keyboard QSENN");
        treeNode3.add(treeNode4);
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Canon LBP 2900");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Barcode");
        treeNode2.add(treeNode3);
        treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("Switch");
        treeNode2.add(treeNode3);
        treeNode1.add(treeNode2);
        jTree1.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));
        jTree1.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
            public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {
                jTree1ValueChanged(evt);
            }
        });
        jScrollPane1.setViewportView(jTree1);

        jSplitPane2.setBottomComponent(jScrollPane1);

        jSplitPane1.setLeftComponent(jSplitPane2);

        getContentPane().add(jSplitPane1, java.awt.BorderLayout.CENTER);

        jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/files.png"))); // NOI18N
        jMenu1.setText("File");
        jMenu1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu1ActionPerformed(evt);
            }
        });

        print.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
        print.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/print.png"))); // NOI18N
        print.setText("Nge-Print");
        print.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                printActionPerformed(evt);
            }
        });
        jMenu1.add(print);

        keluarPengguna.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.ALT_MASK));
        keluarPengguna.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/user_logout.png"))); // NOI18N
        keluarPengguna.setText("Keluar Pengguna");
        keluarPengguna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                keluarPenggunaActionPerformed(evt);
            }
        });
        jMenu1.add(keluarPengguna);

        keluarSystem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
        keluarSystem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/cancel.png"))); // NOI18N
        keluarSystem.setText("Keluar System");
        keluarSystem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                keluarSystemActionPerformed(evt);
            }
        });
        jMenu1.add(keluarSystem);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");

        jMenuItem16.setText("Cut");
        jMenu2.add(jMenuItem16);

        jMenuItem17.setText("Copy");
        jMenu2.add(jMenuItem17);

        jMenuItem18.setText("Paste");
        jMenu2.add(jMenuItem18);

        jMenuBar1.add(jMenu2);

        jMenu3.setText("Data Master");

        masterKategoriBarang.setText("Jenis - Jenis Barang / Kategori Barang");
        jMenu3.add(masterKategoriBarang);

        masterListBarang.setText("List Barang Tersedia");
        jMenu3.add(masterListBarang);

        masterBarangRental.setText("Barang Rental");
        jMenu3.add(masterBarangRental);

        jMenuBar1.add(jMenu3);

        jMenu4.setText("Laporan");

        reportBarangMasuk.setText("Data Barang Masuk / Barang Baru");
        jMenu4.add(reportBarangMasuk);

        reportBarangKeluar.setText("Data Barang Keluar ");
        jMenu4.add(reportBarangKeluar);

        reportBarangKembali.setText("Data Barang Kembali");
        jMenu4.add(reportBarangKembali);

        reportBarangError.setText("Data Barang rusak");
        jMenu4.add(reportBarangError);

        jMenuBar1.add(jMenu4);

        jMenu5.setText("Tools");

        toolsNotepad.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/note.png"))); // NOI18N
        toolsNotepad.setText("Notepad");
        jMenu5.add(toolsNotepad);

        toolsCalculator.setText("Calculator");
        jMenu5.add(toolsCalculator);

        jMenuItem12.setText("Options");
        jMenu5.add(jMenuItem12);

        jMenuBar1.add(jMenu5);

        jMenu6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/pengaturan.png"))); // NOI18N
        jMenu6.setText("Pengaturan");

        pengaturanPengguna.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/user_edit.png"))); // NOI18N
        pengaturanPengguna.setText("Data Pengguna ");
        jMenu6.add(pengaturanPengguna);

        pengaturanDatabase.setIcon(new javax.swing.ImageIcon(getClass().getResource("/agol/rent/system/image/db.png"))); // NOI18N
        pengaturanDatabase.setText("Database Server");
        pengaturanDatabase.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pengaturanDatabaseActionPerformed(evt);
            }
        });
        jMenu6.add(pengaturanDatabase);

        menuTema.setText("Pilih Tema");

        buttonTema.add(radioNimbus);
        radioNimbus.setSelected(true);
        radioNimbus.setText("Nimbus");
        radioNimbus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                radioNimbusActionPerformed(evt);
            }
        });
        menuTema.add(radioNimbus);

        buttonTema.add(radioWindows);
        radioWindows.setText("Windows");
        radioWindows.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                radioWindowsActionPerformed(evt);
            }
        });
        menuTema.add(radioWindows);

        buttonTema.add(radioMetal);
        radioMetal.setText("Metal");
        radioMetal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                radioMetalActionPerformed(evt);
            }
        });
        menuTema.add(radioMetal);

        buttonTema.add(radioMotif);
        radioMotif.setText("Motif");
        radioMotif.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                radioMotifActionPerformed(evt);
            }
        });
        menuTema.add(radioMotif);

        jMenu6.add(menuTema);

        jMenuBar1.add(jMenu6);

        setJMenuBar(jMenuBar1);
    }// </editor-fold>//GEN-END:initComponents

    private void undoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_undoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_undoActionPerformed

    private void keluarSystemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_keluarSystemActionPerformed
        // TODO add your handling code here
        
       KonfirmasiExit konfirmasiExit = new KonfirmasiExit();
       konfirmasiExit.setVisible(true);
        
    }//GEN-LAST:event_keluarSystemActionPerformed

    private void pengaturanDatabaseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pengaturanDatabaseActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_pengaturanDatabaseActionPerformed

    private void keluarPenggunaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_keluarPenggunaActionPerformed
       // TODO add your handling code here:
        
        KonfirmasiLogout konfirmasiLogout = new KonfirmasiLogout();
        konfirmasiLogout.setVisible(true);
        
    }//GEN-LAST:event_keluarPenggunaActionPerformed

    private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenu1ActionPerformed

    private void printActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_printActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_printActionPerformed

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        // TODO add your handling code here:
        
       KonfirmasiExit konfirmasiExit = new KonfirmasiExit();
       konfirmasiExit.setVisible(true);
       
    }//GEN-LAST:event_formWindowClosing

    private void radioNimbusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_radioNimbusActionPerformed
        // TODO add your handling code here:
        
        try {
          UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
          resetLaf();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);
        }       
        
    }//GEN-LAST:event_radioNimbusActionPerformed

    private void radioWindowsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_radioWindowsActionPerformed
        // TODO add your handling code here:
        
        try {
          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          resetLaf();
        }catch (ClassNotFoundException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null ,ex);
        }
    }//GEN-LAST:event_radioWindowsActionPerformed
       
    private void radioMetalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_radioMetalActionPerformed
        
            // TODO add your handling code here:
       try {  
           UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
           resetLaf();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null ,ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null ,ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null ,ex);
        }
        
    }//GEN-LAST:event_radioMetalActionPerformed

    private void radioMotifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_radioMotifActionPerformed
        // TODO add your handling code here:
        
        try {
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
         resetLaf();
       } catch (ClassNotFoundException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null ,ex);      
       } catch (InstantiationException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);    
       } catch (IllegalAccessException ex) {
            Logger.getLogger(FormAdmin.class.getName()).log(Level.SEVERE, null, ex);    
       } catch (UnsupportedLookAndFeelException ex) {
                
       }
    }//GEN-LAST:event_radioMotifActionPerformed

    private void notepadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_notepadActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_notepadActionPerformed

    private void exitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitActionPerformed
        // TODO add your handling code here:
        
       KonfirmasiExit konfirmasiExit = new KonfirmasiExit();
       konfirmasiExit.setVisible(true);
       
    }//GEN-LAST:event_exitActionPerformed

    private void jTree1ValueChanged(javax.swing.event.TreeSelectionEvent evt) {//GEN-FIRST:event_jTree1ValueChanged
        // TODO add your handling code here:
        
    }//GEN-LAST:event_jTree1ValueChanged

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel PanelJamBawah;
    private javax.swing.JPanel PanelTampungHome;
    private javax.swing.ButtonGroup buttonTema;
    private com.stripbandunk.jglasspane.component.DialogComponent dialogComponent1;
    private javax.swing.JButton exit;
    private usu.widget.GlassPane glassPane1;
    private javax.swing.JButton home;
    private com.stripbandunk.jglasspane.JGlassPane jGlassPane1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem16;
    private javax.swing.JMenuItem jMenuItem17;
    private javax.swing.JMenuItem jMenuItem18;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JToolBar.Separator jSeparator1;
    private javax.swing.JToolBar.Separator jSeparator2;
    private javax.swing.JSplitPane jSplitPane1;
    private javax.swing.JSplitPane jSplitPane2;
    private com.stripbandunk.jwidget.JTimeLabel jTimeLabel2;
    private javax.swing.JToolBar jToolBar2;
    private javax.swing.JTree jTree1;
    private javax.swing.JButton kalkulator;
    private javax.swing.JMenuItem keluarPengguna;
    private javax.swing.JMenuItem keluarSystem;
    private usu.widget.Label label1;
    private javax.swing.JMenuItem masterBarangRental;
    private javax.swing.JMenuItem masterKategoriBarang;
    private javax.swing.JMenuItem masterListBarang;
    private javax.swing.JMenu menuTema;
    private javax.swing.JButton notepad;
    private agol.rent.system.panel.panelAccessories panelAccessories;
    private agol.rent.system.panel.panelArmagedon panelArmagedon;
    private javax.swing.JMenuItem pengaturanDatabase;
    private javax.swing.JMenuItem pengaturanPengguna;
    private javax.swing.JMenuItem print;
    private javax.swing.JRadioButtonMenuItem radioMetal;
    private javax.swing.JRadioButtonMenuItem radioMotif;
    private javax.swing.JRadioButtonMenuItem radioNimbus;
    private javax.swing.JRadioButtonMenuItem radioWindows;
    private javax.swing.JButton redo;
    private javax.swing.JMenuItem reportBarangError;
    private javax.swing.JMenuItem reportBarangKeluar;
    private javax.swing.JMenuItem reportBarangKembali;
    private javax.swing.JMenuItem reportBarangMasuk;
    private javax.swing.JMenuItem toolsCalculator;
    private javax.swing.JMenuItem toolsNotepad;
    private com.stripbandunk.jglasspane.component.TransitionComponent transitionComponent1;
    private javax.swing.JButton undo;
    // End of variables declaration//GEN-END:variables

    

    
}
